<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .ball {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            /* background-color: cyan; */
            position: fixed;
            top: 100px;
            /* left: 100px; */
            right: 0;
            /* border: 1px dashed; */
            animation: moveX 1s  linear forwards;
        }

        .inner{
            height: 100%;
            width: 100%;
            border-radius: inherit;
            background-color: #fc5e56;
            animation: ease-out;
            animation: moveY 1s cubic-bezier(0.23,-0.41, 0.59,-0.26) forwards; 
            /* 反向运动再逼近目标 */

        }

        @keyframes moveX {
            to {
                transform: translateX(-1200px);
            }
        }

        @keyframes moveY {
            to {
                transform: translateY(500px);
            }
        }
    </style>
</head>

<body>
    <div class="ball">
        <div class="inner"></div>
    </div>
</body>

</html>